300
|
Can I add any break or divider line
![](images/exlistq300.png)
Dim h
With Exlist1
.ScrollBySingleLine = False
.Columns.Add("Default")
With .Items
.Add("Item 1")
h = .Add()
.set_ItemBreak(h,exontrol.EXLISTLib.BreakLineEnum.SingleLine)
.set_SelectableItem(h,False)
.set_ItemHeight(h,6)
.Add("Item 3")
End With
End With
|
299
|
Can I change the default border of the tooltip, using your EBN files
![](images/exlistq299.png)
With Exlist1
.ToolTipDelay = 1
.ToolTipWidth = 364
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.set_Background32(exontrol.EXLISTLib.BackgroundPartEnum.exToolTipAppearance,&H1000000)
.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
End With
|
298
|
Can I change the background color for the tooltip
![](images/exlistq298.png)
With Exlist1
.ToolTipDelay = 1
.ToolTipWidth = 364
.set_Background(exontrol.EXLISTLib.BackgroundPartEnum.exToolTipBackColor,Color.FromArgb(255,0,0))
.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
End With
|
297
|
Does the tooltip support HTML format
![](images/exlistq297.png)
With Exlist1
.ToolTipDelay = 1
.ToolTipWidth = 364
.Columns.Add("tootip").ToolTip = "<font Tahoma;11>T</font>his is an HTML <b>tooltip</b> assigned to a <fgcolor=FF0000>column</fgcolor>"
End With
|
296
|
Can I change the forecolor for the tooltip
![](images/exlistq296.png)
With Exlist1
.ToolTipDelay = 1
.ToolTipWidth = 364
.set_Background(exontrol.EXLISTLib.BackgroundPartEnum.exToolTipForeColor,Color.FromArgb(255,0,0))
.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
End With
|
295
|
Can I change the foreground color for the tooltip
![](images/exlistq295.png)
With Exlist1
.ToolTipDelay = 1
.ToolTipWidth = 364
.Columns.Add("tootip").ToolTip = "<fgcolor=FF0000>this is a tooltip assigned to a column</fgcolor>"
End With
|
294
|
Is there any function to limit the height of the items when I display it using multiple lines
![](images/exlistq294.png)
Dim h
With Exlist1
.ScrollBySingleLine = True
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1,"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.")
.set_CellSingleLine(h,1,exontrol.EXLISTLib.CellSingleLineEnum.exCaptionWordWrap)
.set_ItemMaxHeight(h,48)
End With
End With
|
293
|
Why I cannot center my cells in the column
![](images/exlistq293.png)
With Exlist1
.DrawGridLines = exontrol.EXLISTLib.GridLinesEnum.exAllLines
.Columns.Add("Default").Alignment = exontrol.EXLISTLib.AlignmentEnum.CenterAlignment
.Items.Add("item 1")
.Items.Add("item 2")
.Items.Add("item 3")
End With
|
292
|
How can I align the cell to the left, center or to the right
![](images/exlistq292.png)
With Exlist1
.DrawGridLines = exontrol.EXLISTLib.GridLinesEnum.exAllLines
.Columns.Add("Default")
With .Items
.set_CellHAlignment(.Add("left"),0,exontrol.EXLISTLib.AlignmentEnum.LeftAlignment)
.set_CellHAlignment(.Add("center"),0,exontrol.EXLISTLib.AlignmentEnum.CenterAlignment)
.set_CellHAlignment(.Add("right"),0,exontrol.EXLISTLib.AlignmentEnum.RightAlignment)
End With
End With
|
291
|
How do I apply HTML format to a cell
![](images/exlistq291.png)
Dim h
With Exlist1
.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
.set_HTMLPicture("p1","c:\exontrol\images\zipdisk.gif")
.set_HTMLPicture("p2","c:\exontrol\images\auction.gif")
.Columns.Add("Default")
With .Items
h = .Add("The following item shows some of the HTML format supported:")
.set_CellHAlignment(h,0,exontrol.EXLISTLib.AlignmentEnum.CenterAlignment)
h = .Add("<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <" & _
"u>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolo" & _
"r</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> ")
.set_CaptionFormat(h,0,exontrol.EXLISTLib.CaptionFormatEnum.exHTML)
.set_CellSingleLine(h,0,exontrol.EXLISTLib.CellSingleLineEnum.exCaptionWordWrap)
End With
End With
|
290
|
How can I change the font for a cell
![](images/exlistq290.png)
With Exlist1
.Columns.Add("Default")
.Items.Add("std font")
With .Items
.set_CaptionFormat(.Add("this <font tahoma;12>is a bit of text with</font> a different font"),0,exontrol.EXLISTLib.CaptionFormatEnum.exHTML)
End With
End With
|
289
|
How can I change the font for a cell
![](images/exlistq289.png)
Dim f
With Exlist1
.Columns.Add("Default")
.Items.Add("default font")
f = New stdole.StdFont()
With f
.Name = "Tahoma"
.Size = 12
End With
With .Items
.set_CellFont(.Add("new font"),0,f)
End With
End With
|
288
|
How can I change the font for entire item
![](images/exlistq288.png)
Dim f
With Exlist1
.Columns.Add("Default")
.Items.Add("default font")
f = New stdole.StdFont()
With f
.Name = "Tahoma"
.Size = 12
End With
With .Items
.set_ItemFont(.Add("new font"),f)
End With
End With
|
287
|
How do I vertically align a cell
![](images/exlistq287.png)
Dim h
With Exlist1
.DrawGridLines = exontrol.EXLISTLib.GridLinesEnum.exAllLines
.Columns.Add("MultipleLine").set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellSingleLine,False)
.Columns.Add("VAlign")
With .Items
h = .Add("This is a bit of long text that should break the line")
.set_Caption(h,1,"top")
.set_CellVAlignment(h,1,exontrol.EXLISTLib.VAlignmentEnum.TopAlignment)
h = .Add("This is a bit of long text that should break the line")
.set_Caption(h,1,"middle")
.set_CellVAlignment(h,1,exontrol.EXLISTLib.VAlignmentEnum.MiddleAlignment)
h = .Add("This is a bit of long text that should break the line")
.set_Caption(h,1,"bottom")
.set_CellVAlignment(h,1,exontrol.EXLISTLib.VAlignmentEnum.BottomAlignment)
End With
End With
|
286
|
How can I change the position of an item
![](images/exlistq286.png)
With Exlist1
.Columns.Add("Default")
With .Items
.Add("Item 1")
.Add("Item 2")
.set_ItemPosition(.Add("Item 3"),0)
End With
End With
|
285
|
How do I find an item
![](images/exlistq285.png)
With Exlist1
.Columns.Add("Default")
With .Items
.Add("Item 1")
.Add("Item 2")
.Add("Item 3")
.set_ItemBold(.get_FindItem("Item 2",0),True)
End With
End With
|
284
|
How can I insert a hyperlink or an anchor element
![](images/exlistq284.png)
With Exlist1
.Columns.Add("Column")
With .Items
.set_CaptionFormat(.Add("Just an <a1>anchor</a> element ..."),0,exontrol.EXLISTLib.CaptionFormatEnum.exHTML)
End With
With .Items
.set_CaptionFormat(.Add("Just another <a2>anchor</a> element ..."),0,exontrol.EXLISTLib.CaptionFormatEnum.exHTML)
End With
End With
|
283
|
How do I find the handle of the item based on its index
![](images/exlistq283.png)
Dim h
With Exlist1
.Columns.Add("Default")
With .Items
h = .Add("Item 1")
.Add("Item 2")
.Add("Item 3")
.set_ItemBold(1,True)
End With
End With
|
282
|
How can I find the cell being clicked in a radio group
![](images/exlistq282.png)
Dim c,h,i
With Exlist1
.MarkSearchColumn = False
.SelBackColor = Color.FromArgb(255,255,128)
.SelForeColor = Color.FromArgb(0,0,0)
.Columns.Add("C1")
.Columns.Add("C2")
.Columns.Add("C3")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1,"Radio 1")
.set_CellHasRadioButton(h,1,True)
.set_CellRadioGroup(h,1,1234)
.set_Caption(h,2,"Radio 2")
.set_CellHasRadioButton(h,2,True)
.set_CellRadioGroup(h,2,1234)
.set_CellState(h,1,1)
.CellChecked(1234,i,c)
.set_CellBold(i,c,True)
End With
End With
|
281
|
Can I let the user to resize at runtime the specified item
![](images/exlistq281.png)
With Exlist1
.ScrollBySingleLine = True
.DrawGridLines = exontrol.EXLISTLib.GridLinesEnum.exAllLines
.Columns.Add("Default")
With .Items
.set_ItemAllowSizing(.Add("resizable item"),True)
.Add("not resizable item")
End With
End With
|
280
|
How can I change the size ( width, height ) of the picture
![](images/exlistq280.png)
Dim h
With Exlist1
.Columns.Add("Default")
With .Items
h = .Add("Item 1")
.set_CellPicture(h,0,Exlist1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)"))
.set_CellPictureWidth(h,0,24)
.set_CellPictureHeight(h,0,24)
.set_ItemHeight(h,32)
h = .Add("Item 2")
.set_CellPicture(h,0,Exlist1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)"))
.set_ItemHeight(h,48)
End With
End With
|
279
|
How can I find the number or the count of selected items
![](images/exlistq279.png)
Dim h
With Exlist1
.SingleSel = False
.Columns.Add("Default")
With .Items
h = .Add("Item 1")
.Add("Item 2")
.Add("Item 3")
.set_SelectItem(.FirstVisibleItem,True)
.set_SelectItem(.get_NextVisibleItem(.FirstVisibleItem),True)
.Add(.SelectCount)
End With
End With
|
278
|
How do I unselect an item
![](images/exlistq278.png)
Dim h
With Exlist1
.Columns.Add("Default")
With .Items
h = .Add("Item 1")
.Add("Item 2")
.Add("Item 3")
.set_SelectItem(h,False)
End With
End With
|
277
|
How do I find the selected item
![](images/exlistq277.png)
Dim h
With Exlist1
.Columns.Add("Default")
With .Items
h = .Add("Item 1")
.Add("Item 2")
.Add("Item 3")
.set_SelectItem(h,True)
.set_ItemBold(.get_SelectedItem(0),True)
End With
End With
|
276
|
How do I un select all items
![](images/exlistq276.png)
With Exlist1
.SingleSel = False
.Columns.Add("Default")
With .Items
.Add("Item 1")
.Add("Item 2")
.Add("Item 3")
.UnselectAll()
End With
End With
|
275
|
How do I select multiple items
![](images/exlistq275.png)
With Exlist1
.SingleSel = False
.Columns.Add("Default")
With .Items
.Add("Item 1")
.Add("Item 2")
.Add("Item 3")
.set_SelectItem(.FirstVisibleItem,True)
.set_SelectItem(.get_NextVisibleItem(.FirstVisibleItem),True)
End With
End With
|
274
|
How do I select all items
![](images/exlistq274.png)
With Exlist1
.SingleSel = False
.Columns.Add("Default")
With .Items
.Add("Item 1")
.Add("Item 2")
.Add("Item 3")
.SelectAll()
End With
End With
|
273
|
How do I select an item
![](images/exlistq273.png)
With Exlist1
.Columns.Add("Default")
With .Items
.Add("Item 1")
.Add("Item 2")
.Add("Item 3")
.set_SelectItem(.get_NextVisibleItem(.FocusItem),True)
End With
End With
|
272
|
Can I display a button with some picture or icon inside
![](images/exlistq272.png)
Dim h
With Exlist1
.set_HTMLPicture("p1","c:\exontrol\images\zipdisk.gif")
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1," Button <img>p1</img> ")
.set_CaptionFormat(h,1,exontrol.EXLISTLib.CaptionFormatEnum.exHTML)
.set_CellHAlignment(h,1,exontrol.EXLISTLib.AlignmentEnum.RightAlignment)
.set_CellHasButton(h,1,True)
.set_ItemHeight(h,48)
End With
End With
|
271
|
Can I display a button with some picture or icon inside
![](images/exlistq271.png)
Dim h
With Exlist1
.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1," Button <img>1</img> ")
.set_CaptionFormat(h,1,exontrol.EXLISTLib.CaptionFormatEnum.exHTML)
.set_CellHAlignment(h,1,exontrol.EXLISTLib.AlignmentEnum.RightAlignment)
.set_CellHasButton(h,1,True)
End With
End With
|
270
|
Can I display a button with some icon inside
![](images/exlistq270.png)
Dim h
With Exlist1
.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1," <img>1</img> ")
.set_CaptionFormat(h,1,exontrol.EXLISTLib.CaptionFormatEnum.exHTML)
.set_CellHAlignment(h,1,exontrol.EXLISTLib.AlignmentEnum.RightAlignment)
.set_CellHasButton(h,1,True)
End With
End With
|
269
|
How can I assign multiple icon/picture to a cell
![](images/exlistq269.png)
Dim h
With Exlist1
.set_HTMLPicture("p1","c:\exontrol\images\zipdisk.gif")
.set_HTMLPicture("p2","c:\exontrol\images\auction.gif")
.Columns.Add("Default")
With .Items
h = .Add("text <img>p1</img> another picture <img>p2</img> and so on")
.set_CaptionFormat(h,0,exontrol.EXLISTLib.CaptionFormatEnum.exHTML)
.set_CellPicture(h,0,Exlist1.ExecuteTemplate("loadpicture(`c:\exontrol\images\colorize.gif`)"))
.set_ItemHeight(h,48)
.Add("Item 2")
End With
End With
|
268
|
How can I assign an icon/picture to a cell
![](images/exlistq268.png)
Dim h
With Exlist1
.Columns.Add("Default")
With .Items
h = .Add("Item 1")
.set_CellPicture(h,0,Exlist1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)"))
.set_ItemHeight(h,48)
.Add("Item 2")
End With
End With
|
267
|
How can I assign multiple icons/pictures to a cell
![](images/exlistq267.png)
Dim h
With Exlist1
.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
.Columns.Add("Default")
With .Items
h = .Add("Item <img>1</img> 1, <img>2</img>, ... and so on ")
.set_CaptionFormat(h,0,exontrol.EXLISTLib.CaptionFormatEnum.exHTML)
End With
End With
|
266
|
How can I assign multiple icons/pictures to a cell
![](images/exlistq266.png)
Dim h
With Exlist1
.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
.Columns.Add("Default")
With .Items
h = .Add("Item 1")
.set_CellImages(h,0,"1,2,3")
End With
End With
|
265
|
How can I assign an icon/picture to a cell
![](images/exlistq265.png)
Dim h
With Exlist1
.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
.Columns.Add("Default")
With .Items
h = .Add("Item 1")
.set_CellImage(h,0,1)
.set_CellImage(.Add("Item 2"),0,2)
.set_CellImage(.Add("Item 3"),0,3)
End With
End With
|
264
|
How can I display a button inside the item or cell
![](images/exlistq264.png)
Dim h
With Exlist1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1," Button 1 ")
.set_CellHAlignment(h,1,exontrol.EXLISTLib.AlignmentEnum.RightAlignment)
.set_CellHasButton(h,1,True)
h = .Add("Cell 2")
.set_Caption(h,1," Button 2 ")
.set_CellHAlignment(h,1,exontrol.EXLISTLib.AlignmentEnum.CenterAlignment)
.set_CellHasButton(h,1,True)
End With
End With
|
263
|
How can I change the state of a radio button
![](images/exlistq263.png)
Dim h
With Exlist1
.MarkSearchColumn = False
.SelBackColor = Color.FromArgb(255,255,128)
.SelForeColor = Color.FromArgb(0,0,0)
.Columns.Add("C1")
.Columns.Add("C2")
.Columns.Add("C3")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1,"Radio 1")
.set_CellHasRadioButton(h,1,True)
.set_CellRadioGroup(h,1,1234)
.set_Caption(h,2,"Radio 2")
.set_CellHasRadioButton(h,2,True)
.set_CellRadioGroup(h,2,1234)
.set_CellState(h,1,1)
End With
End With
|
262
|
How can I assign a radio button to a cell
![](images/exlistq262.png)
Dim h
With Exlist1
.MarkSearchColumn = False
.SelBackColor = Color.FromArgb(255,255,128)
.SelForeColor = Color.FromArgb(0,0,0)
.Columns.Add("C1")
.Columns.Add("C2")
.Columns.Add("C3")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1,"Radio 1")
.set_CellHasRadioButton(h,1,True)
.set_CellRadioGroup(h,1,1234)
.set_Caption(h,2,"Radio 2")
.set_CellHasRadioButton(h,2,True)
.set_CellRadioGroup(h,2,1234)
.set_CellState(h,1,1)
End With
End With
|
261
|
How can I change the state of a checkbox
![](images/exlistq261.png)
Dim h
With Exlist1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1,"Check Box")
.set_CellHasCheckBox(h,1,True)
.set_CellState(h,1,1)
End With
End With
|
260
|
How can I assign a checkbox to a cell
![](images/exlistq260.png)
Dim h
With Exlist1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1,"Check Box")
.set_CellHasCheckBox(h,1,True)
End With
End With
|
259
|
How can I display an item or a cell on multiple lines
![](images/exlistq259.png)
Dim h
With Exlist1
.ScrollBySingleLine = True
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1,"This is bit of text that's shown on multiple lines")
.set_CellSingleLine(h,1,exontrol.EXLISTLib.CellSingleLineEnum.exCaptionWordWrap)
End With
End With
|
258
|
How can I assign a tooltip to a cell
![](images/exlistq258.png)
Dim h
With Exlist1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1,"tooltip")
.set_CellToolTip(h,1,"This is bit of text that's shown when the user hovers the cell")
End With
End With
|
257
|
How can I associate an extra data to a cell
![](images/exlistq257.png)
Dim h
With Exlist1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1,"Cell 2")
.set_CellData(h,1,"your extra data")
End With
End With
|
256
|
How do I enable or disable a cell
![](images/exlistq256.png)
Dim h
With Exlist1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1,"Cell 2")
.set_CellEnabled(h,1,False)
End With
End With
|
255
|
How do I change the cell's foreground color
![](images/exlistq255.png)
Dim h
With Exlist1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1,"Cell 2")
.set_CellForeColor(h,1,Color.FromArgb(255,0,0))
End With
End With
|
254
|
How do I change the visual effect for the cell, using your EBN files
![](images/exlistq254.png)
Dim h
With Exlist1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1,"Cell 2")
.set_CellBackColor32(h,1,&H1000000)
End With
End With
|
253
|
How do I change the cell's background color
![](images/exlistq253.png)
Dim h
With Exlist1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .Add("Cell 1")
.set_Caption(h,1,"Cell 2")
.set_CellBackColor(h,1,Color.FromArgb(255,0,0))
End With
End With
|
252
|
How do I change the caption or value for a particular cell
![](images/exlistq252.png)
With Exlist1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
.set_Caption(.Add("Cell 1"),1,"Cell 2")
End With
End With
|
251
|
How do I retrieve the focused item
![](images/exlistq251.png)
With Exlist1
.Columns.Add("Default")
With .Items
.Add("Item 1")
.Add("Item 2")
.Add("Item 3")
.set_ItemBold(.FocusItem,True)
End With
End With
|
250
|
How do I enumerate the visible items
![](images/exlistq250.png)
Dim h
With Exlist1
.Columns.Add("Default")
With .Items
h = .Add("Item 1")
h = .Add("Item 2")
.set_ItemBold(.FirstVisibleItem,True)
.set_ItemBold(.get_NextVisibleItem(.FirstVisibleItem),True)
End With
End With
|
249
|
How can I make an item unselectable, or not selectable
![](images/exlistq249.png)
Dim h
With Exlist1
.Columns.Add("Column")
With .Items
h = .Add("unselectable - you can't get selected")
.set_SelectableItem(h,False)
.Add("selectable")
End With
End With
|
248
|
How can I hide or show an item
![](images/exlistq248.png)
Dim h
With Exlist1
.Columns.Add("Column")
With .Items
h = .Add("hidden")
.set_ItemHeight(h,0)
.set_SelectableItem(h,False)
.Add("visible")
End With
End With
|
247
|
How can I change the height for all items
![](images/exlistq247.png)
With Exlist1
.DefaultItemHeight = 32
.Columns.Add("Column")
.Items.Add("One")
.Items.Add("Two")
End With
|
246
|
How do I change the height of an item
![](images/exlistq246.png)
With Exlist1
.ScrollBySingleLine = True
.Columns.Add("Default")
With .Items
.set_ItemHeight(.Add("height"),128)
End With
.Items.Add("enabled")
End With
|
245
|
How do I disable or enable an item
![](images/exlistq245.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_EnableItem(.Add("disabled"),False)
End With
.Items.Add("enabled")
End With
|
244
|
How do I display as strikeout a cell
![](images/exlistq244.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_CellStrikeOut(.Add("strikeout"),0,True)
End With
End With
|
243
|
How do I display as strikeout a cell or an item
![](images/exlistq243.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_CaptionFormat(.Add("gets <s>strikeout</s> only a portion of text"),0,exontrol.EXLISTLib.CaptionFormatEnum.exHTML)
End With
End With
|
242
|
How do I display as strikeout an item
![](images/exlistq242.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_ItemStrikeOut(.Add("strikeout"),True)
End With
End With
|
241
|
How do I underline a cell
![](images/exlistq241.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_CellUnderline(.Add("underline"),0,True)
End With
End With
|
240
|
How do I underline a cell or an item
![](images/exlistq240.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_CaptionFormat(.Add("gets <u>underline</u> only a portion of text"),0,exontrol.EXLISTLib.CaptionFormatEnum.exHTML)
End With
End With
|
239
|
How do I underline an item
![](images/exlistq239.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_ItemUnderline(.Add("underline"),True)
End With
End With
|
238
|
How do I display as italic a cell
![](images/exlistq238.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_CellItalic(.Add("italic"),0,True)
End With
End With
|
237
|
How do I display as italic a cell or an item
![](images/exlistq237.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_CaptionFormat(.Add("gets <i>italic</i> only a portion of text"),0,exontrol.EXLISTLib.CaptionFormatEnum.exHTML)
End With
End With
|
236
|
How do I display as italic an item
![](images/exlistq236.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_ItemItalic(.Add("italic"),True)
End With
End With
|
235
|
How do I bold a cell
![](images/exlistq235.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_CellBold(.Add("bold"),0,True)
End With
End With
|
234
|
How do I bold a cell or an item
![](images/exlistq234.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_CaptionFormat(.Add("gets <b>bold</b> only a portion of text"),0,exontrol.EXLISTLib.CaptionFormatEnum.exHTML)
End With
End With
|
233
|
How do I bold an item
![](images/exlistq233.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_ItemBold(.Add("bold"),True)
End With
End With
|
232
|
How do I change the foreground color for the item
![](images/exlistq232.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_ItemForeColor(.Add("Item"),Color.FromArgb(255,0,0))
End With
End With
|
231
|
How do I change the visual appearance for the item, using your EBN technology
![](images/exlistq231.png)
With Exlist1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.Columns.Add("Default")
With .Items
.set_ItemBackColor32(.Add("Item"),&H1000000)
End With
End With
|
230
|
How do I change the background color for the item
![](images/exlistq230.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_ItemBackColor(.Add("Item"),Color.FromArgb(255,0,0))
End With
End With
|
229
|
How do I associate an extra data to an item
![](images/exlistq229.png)
With Exlist1
.Columns.Add("Default")
With .Items
.set_ItemData(.Add("item"),"your extra data")
End With
End With
|
228
|
How do I programmatically edit a cell
![](images/exlistq228.png)
' AfterCellEdit event - Occurs after data in the current cell is edited.
Private Sub Exlist1_AfterCellEdit(ByVal sender As System.Object,ByVal ItemIndex As Integer,ByVal ColIndex As Integer,ByVal NewCaption As String) Handles Exlist1.AfterCellEdit
With Exlist1
With .Items
.set_Caption(ItemIndex,ColIndex,NewCaption)
End With
End With
End Sub
' CancelCellEdit event - Occurs if the edit operation is canceled.
Private Sub Exlist1_CancelCellEdit(ByVal sender As System.Object,ByVal ItemIndex As Integer,ByVal ColIndex As Integer,ByVal Reserved As Object) Handles Exlist1.CancelCellEdit
With Exlist1
With .Items
.set_Caption(ItemIndex,ColIndex,Reserved)
End With
End With
End Sub
' Click event - Occurs when the user presses and then releases the left mouse button over the list control.
Private Sub Exlist1_Click(ByVal sender As System.Object) Handles Exlist1.Click
With Exlist1
With .Items
.Edit(.FocusItem,0)
End With
End With
End Sub
With Exlist1
.AllowEdit = True
.Columns.Add("Default")
With .Items
.Add("")
End With
End With
|
227
|
How can I ensure or scroll the control so the item fits the control's client area
![](images/exlistq227.png)
Dim h
With Exlist1
.Columns.Add("Default")
h = .Items.Add("item")
.Items.EnsureVisibleItem(h)
End With
|
226
|
How can I remove or delete all items
With Exlist1
.Columns.Add("Default")
.Items.Add("removed item")
.Items.RemoveAll()
End With
|
225
|
How can I remove or delete an item
Dim h
With Exlist1
.Columns.Add("Default")
h = .Items.Add("removed item")
.Items.Remove(h)
End With
|
224
|
How can I add or insert an item
![](images/exlistq224.png)
Dim h
With Exlist1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
.set_Caption(.Add("Cell 1"),1,"Cell 2")
h = .Add("Cell 3")
.set_Caption(h,1,"Cell 4")
End With
End With
|
223
|
How can I add or insert an item
![](images/exlistq223.png)
With Exlist1
.Columns.Add("Default")
.Items.Add("new item")
End With
|
222
|
How can I get the columns as they are shown in the control's sortbar
Dim var_Object
With Exlist1
var_Object = .Columns.get_ItemBySortPosition(0)
End With
|
221
|
How can I access the properties of a column
![](images/exlistq221.png)
With Exlist1
.Columns.Add("A")
.Columns.Item("A").HeaderBold = True
End With
|
220
|
How can I remove all the columns
With Exlist1
.Columns.Clear()
End With
|
219
|
How can I remove a column
With Exlist1
.Columns.Remove("A")
End With
|
218
|
How can I get the number or the count of columns
Dim var_Count
With Exlist1
var_Count = .Columns.Count
End With
|
217
|
How can I change the font for all cells in the entire column
![](images/exlistq217.png)
Dim f
With Exlist1
f = New stdole.StdFont()
With f
.Name = "Tahoma"
.Size = 12
End With
With .ConditionalFormats.Add("1")
.Font = f
.ApplyTo = exontrol.EXLISTLib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.Add(0)
.Items.Add(1)
End With
|
216
|
How can I change the background color for all cells in the column
![](images/exlistq216.png)
Dim var_ConditionalFormat
With Exlist1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.BackColor = Color.FromArgb(255,0,0)
.ApplyTo = exontrol.EXLISTLib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.Add(0)
.Items.Add(1)
End With
|
215
|
How can I change the foreground color for all cells in the column
![](images/exlistq215.png)
Dim var_ConditionalFormat
With Exlist1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.ForeColor = Color.FromArgb(255,0,0)
.ApplyTo = exontrol.EXLISTLib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.Add(0)
.Items.Add(1)
End With
|
214
|
How can I show as strikeout all cells in the column
![](images/exlistq214.png)
Dim var_ConditionalFormat
With Exlist1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.StrikeOut = True
.ApplyTo = exontrol.EXLISTLib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.Add(0)
.Items.Add(1)
End With
|
213
|
How can I underline all cells in the column
![](images/exlistq213.png)
Dim var_ConditionalFormat
With Exlist1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.Underline = True
.ApplyTo = exontrol.EXLISTLib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.Add(0)
.Items.Add(1)
End With
|
212
|
How can I show in italic all data in the column
![](images/exlistq212.png)
Dim var_ConditionalFormat
With Exlist1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.Italic = True
.ApplyTo = exontrol.EXLISTLib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.Add(0)
.Items.Add(1)
End With
|
211
|
How can I bold the entire column
![](images/exlistq211.png)
Dim var_ConditionalFormat
With Exlist1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.Bold = True
.ApplyTo = exontrol.EXLISTLib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.Add(0)
.Items.Add(1)
End With
|
210
|
How can I display a computed column and highlight some values that are negative or less than a value
![](images/exlistq210.png)
Dim var_ConditionalFormat
With Exlist1
.Columns.Add("A")
.Columns.Add("B")
.Columns.Add("(A+B)*1.19").ComputedField = "(%0 + %1) * 1.19"
With .Items
.set_Caption(.Add(1),1,2)
End With
With .Items
.set_Caption(.Add(10),1,20)
End With
var_ConditionalFormat = .ConditionalFormats.Add("%2 > 10")
With var_ConditionalFormat
.Bold = True
.ForeColor = Color.FromArgb(255,0,0)
.ApplyTo = &H2
End With
End With
|
209
|
Can I display a computed column so it displays the VAT, or SUM
![](images/exlistq209.png)
With Exlist1
.Columns.Add("A")
.Columns.Add("B")
.Columns.Add("(A+B)*1.19").ComputedField = "(%0 + %1) * 1.19"
With .Items
.set_Caption(.Add(1),1,2)
End With
With .Items
.set_Caption(.Add(10),1,20)
End With
End With
|
208
|
How can I show a column that adds values in the cells
![](images/exlistq208.png)
With Exlist1
.Columns.Add("A")
.Columns.Add("B")
.Columns.Add("A+B").ComputedField = "%0 + %1"
With .Items
.set_Caption(.Add(1),1,2)
End With
With .Items
.set_Caption(.Add(10),1,20)
End With
End With
|
207
|
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters
![](images/exlistq207.png)
Dim var_Column
With Exlist1
var_Column = .Columns.Add("Filter")
With var_Column
.FilterOnType = True
.DisplayFilterButton = True
.AutoSearch = exontrol.EXLISTLib.AutoSearchEnum.exContains
End With
.Items.Add("Canada")
.Items.Add("USA")
End With
|
206
|
Is there any function to filter the control's data as I type, something like filter on type
![](images/exlistq206.png)
Dim var_Column
With Exlist1
var_Column = .Columns.Add("Filter")
With var_Column
.FilterOnType = True
.DisplayFilterButton = True
End With
.Items.Add("Canada")
.Items.Add("USA")
End With
|
205
|
How can I programmatically filter a column
![](images/exlistq205.png)
With Exlist1
With .Columns.Add("Filter")
.DisplayFilterButton = True
.FilterType = exontrol.EXLISTLib.FilterTypeEnum.exNonBlanks
End With
.Items.Add()
.Items.Add("not empty")
.ApplyFilter()
End With
|
204
|
How can I show or display the control's filter
![](images/exlistq204.png)
With Exlist1
.Columns.Add("Filter").DisplayFilterButton = True
End With
|
203
|
How can I customize the items being displayed in the drop down filter window
![](images/exlistq203.png)
With Exlist1
With .Columns.Add("Custom Filter")
.DisplayFilterButton = True
.DisplayFilterPattern = False
.CustomFilter = "Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*." & _
"txt|*.log"
.FilterType = exontrol.EXLISTLib.FilterTypeEnum.exPattern
.Filter = "*.xls"
End With
.Items.Add("excel.xls")
.Items.Add("word.doc")
.Items.Add("pp.pps")
.Items.Add("text.txt")
.ApplyFilter()
End With
|
202
|
How can I change the order or the position of the columns in the sort bar
![](images/exlistq202.png)
With Exlist1
.SortBarVisible = True
.SortBarColumnWidth = 48
.Columns.Add("C1").SortOrder = exontrol.EXLISTLib.SortOrderEnum.SortAscending
.Columns.Add("C2").SortOrder = exontrol.EXLISTLib.SortOrderEnum.SortDescending
.Columns.Item("C2").SortPosition = 0
End With
|
201
|
How do I arrange my columns on multiple levels
![](images/exlistq201.png)
With Exlist1
.Columns.Add("S").Width = 32
.Columns.Add("Level 2").LevelKey = 1
.Columns.Add("Level 3").LevelKey = 1
.Columns.Add("Level 4").LevelKey = 1
.Columns.Add("Level 1").LevelKey = "2"
.Columns.Add("Level 2").LevelKey = "2"
.Columns.Add("Level 3").LevelKey = "2"
.Columns.Add("Level 4").LevelKey = "2"
.Columns.Add("E").Width = 32
End With
|